package com.stylefeng.guns.modular.hhtb.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.stylefeng.guns.modular.hhtb.model.LogMailcc;
import com.stylefeng.guns.modular.hhtb.dao.LogMailccMapper;
import com.stylefeng.guns.modular.hhtb.model.LogMailccDto;
import com.stylefeng.guns.modular.hhtb.service.ILogMailccService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户消费账户流水表 服务实现类
 * </p>
 *
 * @author stylefeng
 * @since 2018-08-27
 */
@Service
public class LogMailccServiceImpl extends ServiceImpl<LogMailccMapper, LogMailcc> implements ILogMailccService {

    @Autowired
    private LogMailccMapper logMailccMapper;
    @Override
    public List<Map<String, Object>> selectLogMailcList(Page<Map<String, Object>> page, LogMailccDto logMailccDto) {
        List<Map<String, Object>> list = logMailccMapper.selectLogMailcList(page,logMailccDto);
        Integer total = logMailccMapper.selectLogMailcListCount(logMailccDto);
        page.setTotal(total);
        return list;
    }
}
